﻿#include <iostream>
#include <limits>
using namespace std;

int main() {
	cout << "该处理系统的整型可以表示的数值：\n";

	cout << "char：" << int(numeric_limits<char>::min()) << "~" << int(numeric_limits<char>::max()) << '\n';

	cout << "signed char：" << int(numeric_limits<signed char>::min()) << "~" << int(numeric_limits<signed char>::max()) << '\n';

	cout << "unsigned char：" << int(numeric_limits<unsigned char>::min()) << "~" << int(numeric_limits<unsigned char>::max()) << '\n';

	cout << "short int：" << int(numeric_limits<short int>::min()) << "~" << int(numeric_limits<short int>::max()) << '\n';

	cout << "int：" << int(numeric_limits<int>::min()) << "~" << int(numeric_limits<int>::max()) << '\n';

	cout << "long int：" << int(numeric_limits<long int>::min()) << "~" << int(numeric_limits<long int>::max()) << '\n';

	cout << "unsigned short int：" << int(numeric_limits<unsigned short int>::min()) << "~" << int(numeric_limits<unsigned short int>::max()) << '\n';

	cout << "unsigned int：" << numeric_limits<unsigned int>::min() << "~" << numeric_limits<unsigned int>::max() << '\n';

	cout << "unsigned long int：" << numeric_limits<unsigned long int>::min() << "~" << numeric_limits<unsigned long int>::max() << '\n';

	cin.get();
}